# ch07 The Book of Ruby - http://www.sapphiresteel.com

class MyClass
end

class MyOtherClass < MyClass
end

def showFamily(aClass)
  unless aClass.nil?
    puts("#{aClass} :: about to recurse with aClass.superclass =
          #{aClass.superclass.inspect}")
    showFamily(aClass.superclass)
  end
end

# Try uncommenting these classes one by one to trace back through
# their family tree...

# showFamily( MyOtherClass )
# showFamily( String )
# showFamily(File)
# showFamily( Object )
# showFamily( Class )
showFamily(Module)
